package orgs.example.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.util.Date;

@Data
public class Reservation {
    private Integer reserveId;
    private Integer userId;
    private Integer roomId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date reserveStart;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date reserveEnd;
    private Double reserveCost;
    @Pattern(regexp = "^('待支付'|'已支付'|'已取消'|'已完成')$")
    private String reserveStatus;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date reserveOrdertime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date reserveDeadline;
}
